﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
    public class CompanyService
    {
        private readonly CompanyController _companyController = new CompanyController();

        #region [Company_GetByAll]

        public DataTable Company_GetByAll()
        {
            return _companyController.Company_GetByAll();
        }

        #endregion

        #region [Company_GetById]

        public DataTable Company_GetById(int id)
        {
            return _companyController.Company_GetById(id);
        }

        #endregion

        #region [Company_Insert]

        public void Company_Insert(CompanyInfo company)
        {
            _companyController.Company_Insert(company);
        }

        #endregion

        #region [Company_Update]

        public void Company_Update(CompanyInfo company)
        {
            _companyController.Company_Update(company);
        }

        #endregion

        #region [Company_Delete]

        public void Company_Delete(int id)
        {
            _companyController.Company_Delete(id);
        }

        #endregion
    }
}